package com.mxfcode.back.service.impl;

import com.mxfcode.back.mapper.FileMapper;
import com.mxfcode.back.service.FileService;
import com.mxfcode.entity.BBSAttachment;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @类名 FileServiceImpl
 * @描述 TODO
 * @作者 mxf
 * @创建日期 2021-04-01 8:27
 **/
@Service
public class FileServiceImpl implements FileService {

    @Autowired
    private FileMapper fileMapper;

    @Override
    public int addFile(String fileName, String pathString, String saveName) {
        return fileMapper.addFile(fileName,pathString,saveName);
    }

    @Override
    public BBSAttachment getFileInfoBySaveName(String saveName) {
        return fileMapper.getFileInfoBySaveName(saveName);
    }
}
